package com.hutianao.gqgl.user.service;

import com.hutianao.gqgl.login.entity.MenuLevelEntity;
import com.hutianao.gqgl.mybatis.ztree.ZtreeEntity;
import com.hutianao.gqgl.user.entity.SearchUserEntity;
import com.hutianao.gqgl.mybatis.entity.PtMenuEntity;
import com.hutianao.gqgl.mybatis.entity.PtUserEntity;
import com.hutianao.gqgl.mybatis.flexigrid.PaddingEntity;
import com.hutianao.gqgl.mybatis.flexigrid.PadingRstType;
import org.springframework.jdbc.UncategorizedSQLException;

import java.util.List;


public interface UserService {


    List<PtUserEntity> queryUserInfoListByName(SearchUserEntity search);

    void deleteUserInfoByIds(String ids) throws UncategorizedSQLException;

    PtUserEntity queryUserInfoByName(String username);

    List<PtMenuEntity> queryMenuList();

    List<MenuLevelEntity> queryMenuLevelList();

    void modifyUserInfoById(PtUserEntity ptUserEntity);

    List<String> queryrivilegeList(String userUuid);

    PadingRstType<PtUserEntity> queryUserInfoListByPage(SearchUserEntity entity, PaddingEntity paddingEntity);

    List<ZtreeEntity> queryRoleTreeList(String userUuid);

    void saveUserIdAndRoleId(String userUuid, String roleArray);

    List<MenuLevelEntity> queryMenuLevelList(String userUuid);

    String addUserInfo(PtUserEntity ptUserEntity);

    void modifyUserInfo(PtUserEntity ptUserEntity);

    void deleteUserById(String userUuidArray);

    List<ZtreeEntity> queryDepTree(String userUuid);

    void saveUserDep(String userUuid, String depIds);

    PtUserEntity queryUserInfoByMail(String username);


    void unlockUserById(String userUuidArray);

    PtUserEntity queryIsSumUserInfoByName(String username);

    String checkPwd(String username, String password,String newpassword);


}